package com.project.demo.service;

import com.project.demo.dao.ArticleMapper;
import com.project.demo.entity.Article;
import com.project.demo.entity.vo.StaticHitsVo;
import com.project.demo.entity.vo.StaticPraiseVo;
import com.project.demo.service.base.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * 文章：用于内容管理系统的文章(Article)表服务接口
 */
@Service
public class ArticleService extends BaseService<Article> {

	@Autowired
	private ArticleMapper articleMapper;

	public List<StaticHitsVo> staticByHits() {
		List<StaticHitsVo> list = articleMapper.staticByHits();
		return list;
	}

	public List<StaticPraiseVo> staticByPraiseLen() {
		List<StaticPraiseVo> list = articleMapper.staticByPraiseLen();
		return list;
	}

}


